package com.gome.ocean.commonutils;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.BeanUtilsBean;
import org.apache.commons.beanutils.ConvertUtilsBean;
import org.apache.commons.beanutils.PropertyUtilsBean;

import com.gome.ocean.dao.model.gddl.GddlShardAppVO;


/**
 * Created by liuqingxia on 2016/4/18.
 */
public class BeanUtils {

    public static void main(String[] args) throws InvocationTargetException, IllegalAccessException {

        GddlShardAppVO gddlShardAppVO = new GddlShardAppVO();

        ConvertUtilsBean convertUtils = new ConvertUtilsBean();
        BeanUtilsBean beanUtils = new BeanUtilsBean(convertUtils, new PropertyUtilsBean());

        beanUtils.setProperty(gddlShardAppVO, "suffixLength", "123");

        System.out.println(gddlShardAppVO.getSuffixLength());
    }
}
